From cc3c737088e3ac2be323cbcbfeb3a57551d14adf Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 29 Nov 2013 13:13:34 +0100 Subject: [PATCH] infobar: Fix visibility when enable-animations=false When enable-animations is false, the revealer's child-revealed property is notified immediately, so make sure to connect to it before toggling the revealer. https://bugzilla.gnome.org/show_bug.cgi?id=719510 --- gtk/gtkinfobar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 396a087d19..8e99b1683d 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -404,9 +404,9 @@ gtk_info_bar_hide (GtkWidget *widget) { GtkInfoBarPrivate *priv = GTK_INFO_BAR (widget)->priv; - gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE); g_signal_connect_object (priv->revealer, "notify::child-revealed", G_CALLBACK (child_revealed), widget, 0); + gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE); } static void -- 2.30.2